home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / createPreferencesOptVars.mel < prev    next >
Encoding:
Text File  |  2003-07-17  |  12.8 KB  |  396 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. //
  18. //  Alias|Wavefront Script File
  19. //  MODIFY THIS AT YOUR OWN RISK
  20. //
  21. //  Creation Date:  Jan 2000
  22. //
  23. //  Description:
  24. //
  25. //    All optionVars that are used for preferences that appear
  26. //    in the Preferences window MUST be set in this file.
  27. //    Only optionVars used in the preference file should be
  28. //    set in this file.  Others should be set in the 
  29. //    createGlobalOptVars.mel file.
  30. //
  31. //    This file is used to restore the preferences back to the
  32. //    state they were in when Maya is first used.  (The "Restore
  33. //  Default Settings" menu item.)
  34. //
  35. //  It is also used to set all of these preferences on startup
  36. //    so you can use these values in any of the init* files
  37. //    without having to check to see if they are set yet.
  38. //
  39. //    Note: If adding preferences, make sure to read
  40. //    http://w3.tor.aw.sgi.com/maya/TechDoc/CodingGuides/addingPreferences.html
  41. //
  42. {
  43.  
  44.     //----------------------------------------------------------
  45.     // Interface Preferences
  46.     //----------------------------------------------------------
  47.  
  48.     optionVar 
  49.         -sv mayaMode "Animation";
  50.  
  51.     optionVar
  52.         -iv "mainWindowMenubarVis" true
  53.         -iv "allowMenusInPanels" true
  54.         -iv "mainWindowTitleBarVis" true
  55.         -iv "cmdWindowTitleBarVis" true
  56.         -iv "saveWindowPos" true
  57.         -iv "commandLineHoldFocus" false
  58.         -iv "aeInMainWindow" true
  59.         -iv "toolSettingsInMainWindow" true
  60.         -iv "EEexprEdTextEditor" 1
  61.         -iv "mayaMacButtonMap" 3;
  62.  
  63.     //----------------------------------------------------------
  64.     // UI Elements Preferences
  65.     //----------------------------------------------------------
  66.  
  67.     optionVar
  68.          -iv "statusLineVisible" true
  69.          -iv "isShelfVisible" true
  70.          -iv "timeSliderVisible" true
  71.          -iv "playbackRangeVisible" true
  72.          -iv "commandLineVisible" true
  73.          -iv "helpLineVisible" true
  74.          -iv "isAttributeEditorVisible" false
  75.          -iv "toolSettingsVisible" false
  76.          -iv "channelsLayersVisible" true
  77.          -iv "toolboxVisible" true;
  78.  
  79.     //----------------------------------------------------------
  80.     // Misc UI Preferences
  81.     //----------------------------------------------------------
  82.  
  83.     optionVar 
  84.         -iv "helpPopupDisplayTime" 4
  85.         -iv "helpBrowserUseWindow" true
  86.         -iv "helpBrowserRaiseWindow" true
  87.         -iv "helpInMainWindow" false
  88.         -sv "helpLanguage" "en_US"
  89.         -sv "helpUrl" ""
  90.         -sv "remoteHelpUrl" "";
  91.         
  92.     optionVar
  93.          -sv "newScenePanelConfiguration" "Single Perspective View"
  94.          -iv "useNewScenePanelConfig" true
  95.          -iv "useScenePanelConfig" true
  96.          -iv "useSaveScenePanelConfig" true;
  97.  
  98.     //----------------------------------------------------------
  99.     // Display Preferences
  100.     //----------------------------------------------------------
  101.  
  102.     optionVar
  103.         -iv "fastInteraction" false
  104.         -iv "showGrid" true
  105.         -iv "activeObjectPivots" false
  106.         -iv "displayAffected" true
  107.         -iv "displayRegionOfEffect" true
  108.         -iv "wireframeOnShadedActive" 1
  109.         -iv "ghostFramesBefore" 3
  110.         -iv "ghostFramesAfter" 3
  111.         -iv "ghostFrameStep" 1
  112.         -iv "shadeTemplates" false;
  113.  
  114.     //HeadsUpDisplay Toggle Values
  115.  
  116.     optionVar
  117.         -iv "animationDetailsVisibility" false
  118.         -iv "objectDetailsVisibility" false
  119.         -iv "polyCountVisibility" false
  120.         -iv "cameraNamesVisibility" true
  121.         -iv "frameRateVisibility" false
  122.         -iv "viewAxisVisibility" true
  123.         -iv "toggleOriginAxis" false;
  124.  
  125.  
  126.     //----------------------------------------------------------
  127.     // Kin Display Preferences
  128.     //----------------------------------------------------------
  129.     
  130.     optionVar
  131.         -fv "ikHandleDisplayScale" 1.0
  132.         -fv "ikJointDisplayScale" 1.0
  133.         -fv "ikIkFkJointDisplayScale" 0.5
  134.         -sv "ikIkFkDisplayMethod" "ikfk";
  135.  
  136.     //----------------------------------------------------------
  137.     // Manip Display Preferences
  138.     //----------------------------------------------------------
  139.  
  140.     optionVar
  141.         -fv "manipGlobalScale" 1.5
  142.         -fv "manipHandleSize" 35.0
  143.         -fv "manipLinePickSize" 1.0
  144.         -fv "manipLineSize" 1.0
  145.         -fv "manipPreviousStateSize" 6.0;
  146.  
  147.     optionVar
  148.         -iv defaultShowManipulator 6;
  149.  
  150.     //----------------------------------------------------------
  151.     // NURBS Display Preferences
  152.     //----------------------------------------------------------
  153.  
  154.     optionVar
  155.         -iv "newCurveDisplayEP" false
  156.         -iv "newCurveDisplayHull" false
  157.         -iv "newCurveDisplayCV" false
  158.         -iv "newSurfaceDisplayEP" false
  159.         -iv "newSurfaceDisplayHull" false
  160.         -iv "newSurfaceDisplayCV" false
  161.         -iv "newSurfaceDisplayOrigin" false
  162.         -iv "newNurbsIsoparms" 0
  163.         -iv "newNurbsPointsShaded" 4
  164.         -iv "newNurbsPointsWire" 5;
  165.  
  166.     //----------------------------------------------------------
  167.     // Poly Display Preferences
  168.     //----------------------------------------------------------
  169.  
  170.     optionVar
  171.         -iv newPolyVtxDisp false
  172.         -iv newPolyVtxBackCull true
  173.         -iv newPolyVertexNormals false
  174.         -iv newPolyEdgeDisp 0
  175.         -fv newPolyBorderEdgeSize 2.0
  176.         -iv newPolyBorderEdgeHilite false
  177.         -iv newPolyBorderMapHilite false
  178.         -fv newPolyNormalSize 0.4
  179.         -iv newPolyFacetCentreDisp false
  180.         -iv newPolyFacetNormalDisp false
  181.         -iv newPolyFacetTrngleDisp false
  182.         -iv newPolyFacetWarpDisp false
  183.         -iv newPolyNumVertexDisp false
  184.         -iv newPolyNumEdgeDisp false
  185.         -iv newPolyNumFacetDisp false
  186.         -iv newPolyNumUvDisp  false
  187.         -iv newPolyColorShaded 0
  188.         -iv newPolyColorChannel 3
  189.         -iv newPolyBackFaceCull 0;
  190.  
  191.     //----------------------------------------------------------
  192.     // General Application Settings Preferences
  193.     //----------------------------------------------------------
  194.  
  195.     optionVar
  196.         -sv upAxisDirection "y"
  197.         -sv workingUnitLinear "cm"
  198.         -sv workingUnitAngular "deg"
  199.         -sv workingUnitTime "film"
  200.         -fv positionalTolerance 0.01
  201.         -fv tangentialTolerance 0.10;
  202.  
  203.     //----------------------------------------------------------
  204.     // Animation Preferences
  205.     //----------------------------------------------------------
  206.  
  207.     optionVar
  208.         -fv "playbackMin" 1.0
  209.         -fv "playbackMax" 24.0
  210.         -fv "playbackMinRange" 1.0
  211.         -fv "playbackMaxRange" 48.0
  212.         -iv "timeSliderHeight" 28
  213.         -sv "timeSliderShowKeys" "active"
  214.         -iv "timeSliderTimeCode" false
  215.         -sv "timeSliderTimeCodeOffset" "00:00:00:00"
  216.         -iv "timeSliderSnapping" true
  217.         -sv "timeSliderPlayView" "active"
  218.         -sv "timeSliderPlayLoop" "continuous"
  219.         -fv "timeSliderPlaySpeed" 0.0
  220.         -fv "timeSliderPlayBy" 1.0;
  221.  
  222.     //----------------------------------------------------------
  223.     // Dynamics Preferences
  224.     //----------------------------------------------------------
  225.  
  226.     optionVar
  227.         -iv dynPrefAutoCreate true
  228.         -iv dynPrefRunupToCurrentTime false
  229.         -iv dynPrefRunupFrom 1
  230.         -iv dynPrefSaveRuntimeState true;
  231.  
  232.     //----------------------------------------------------------
  233.     // Keys Preferences
  234.     //----------------------------------------------------------
  235.  
  236.     // Bug 179987
  237.     // Set the default inTangentType and outTangentType to "clamped"
  238.     // instead of "spline"
  239.     optionVar
  240.         -iv "autoKeyframeState" false
  241.         -iv "rotationInterpolationDefault" 1
  242.         -sv "autoKeyCharacterState" "standard"
  243.         -iv "weightedTangents" false
  244.         -sv "inTangentType" "clamped"
  245.         -sv "outTangentType" "clamped";
  246.  
  247.     //----------------------------------------------------------
  248.     // Modeling Preferences
  249.     //----------------------------------------------------------
  250.  
  251.     modelWithType (0);
  252.     modelWithToolsAll (0);
  253.  
  254.     //----------------------------------------------------------
  255.     // Selection Preferences
  256.     //----------------------------------------------------------
  257.  
  258.     optionVar 
  259.         -iv selectSingleMarquee false
  260.         -iv selectClickDrag false
  261.         -iv selectAffectsActive true
  262.         -iv ignoreSelectionPriority false
  263.         -iv popupMenuSelection false
  264.         -iv expandPopupList false
  265.         -iv clickBoxSize 4
  266.         -sv selectPrefPriorityMode "animation";
  267.  
  268.     optionVar
  269.         -iv "polyFaceSensitive" false;
  270.  
  271.     optionVar -ca customSelectPriority;
  272.     optionVar 
  273.         -iva customSelectPriority 10     // handle
  274.         -iva customSelectPriority 10     // ikHandle
  275.         -iva customSelectPriority 2     // ikEndEffector
  276.         -iva customSelectPriority 9     // joint
  277.         -iva customSelectPriority 2      // light
  278.         -iva customSelectPriority 2      // camera
  279.         -iva customSelectPriority 2      // lattice
  280.         -iva customSelectPriority 2      // cluster
  281.         -iva customSelectPriority 2      // sculpt
  282.         -iva customSelectPriority 4      // nurbsCurve
  283.         -iva customSelectPriority 3      // curveOnSurface
  284.         -iva customSelectPriority 2      // nurbsSurface
  285.         -iva customSelectPriority 2      // polymesh
  286.         -iva customSelectPriority 2      // plane
  287.         -iva customSelectPriority 2      // particleShape
  288.         -iva customSelectPriority 2      // emitter
  289.         -iva customSelectPriority 2      // field
  290.         -iva customSelectPriority 2      // spring
  291.         -iva customSelectPriority 2      // rigidBody
  292.         -iva customSelectPriority 2      // rigidConstraint
  293.         -iva customSelectPriority 2      // collisionModel
  294.         -iva customSelectPriority 2      // locator
  295.         -iva customSelectPriority 2      // dimension
  296.         -iva customSelectPriority 2        // implicitGeometry
  297.         -iva customSelectPriority 2        // texture
  298.         -iva customSelectPriority 2        // controlVertex
  299.         -iva customSelectPriority 2        // editPoint
  300.         -iva customSelectPriority 2        // hull
  301.         -iva customSelectPriority 2        // polymeshVertex
  302.         -iva customSelectPriority 2        // polymeshEdge
  303.         -iva customSelectPriority 2        // polymeshFace
  304.         -iva customSelectPriority 2        // polymeshUV
  305.         -iva customSelectPriority 2        // polymeshVtxFace
  306.         -iva customSelectPriority 2        // curveParameterPoint
  307.         -iva customSelectPriority 2        // surfaceParameterPoint
  308.         -iva customSelectPriority 2        // surfaceEdge
  309.         -iva customSelectPriority 2        // isoparm
  310.         -iva customSelectPriority 2        // latticePoint
  311.         -iva customSelectPriority 2        // particle
  312.         -iva customSelectPriority 2        // spring
  313.         -iva customSelectPriority 2        // jointPivot
  314.         -iva customSelectPriority 2        // scalePivot
  315.         -iva customSelectPriority 2        // rotatePivot
  316.         -iva customSelectPriority 2        // selectHandle
  317.         -iva customSelectPriority 2        // localRotationAxis
  318.         -iva customSelectPriority 2        // imagePlane
  319.         -iva customSelectPriority 8        // animCurve
  320.         -iva customSelectPriority 10    // animKeyframe
  321.         -iva customSelectPriority 10    // animBreakdown
  322.         -iva customSelectPriority 9        // animInTangent
  323.         -iva customSelectPriority 9        // animOutTangent
  324.         -iva customSelectPriority 2        // "subdiv"
  325.         -iva customSelectPriority 2        // "subdivMeshPoint"
  326.         -iva customSelectPriority 2        // "subdivMeshEdge"
  327.         -iva customSelectPriority 2        // "subdivMeshFace"
  328.         -iva customSelectPriority 2        // surfaceFace
  329.         ;
  330.  
  331.     //----------------------------------------------------------
  332.     // Snapping Preferences
  333.     //----------------------------------------------------------
  334.  
  335.     optionVar
  336.         -iv useSnapTolerance false
  337.         -iv snapTolerance 20
  338.         -iv snapUVTolerance 25
  339.         -iv snapMagnet 0
  340.         -fv snapMagnetTolerance 0.1;
  341.  
  342.     //----------------------------------------------------------
  343.     // Sound Preferences
  344.     //----------------------------------------------------------
  345.  
  346.     optionVar
  347.         -sv "timeSliderSoundDisplay" "both"
  348.         -iv "timeSliderRepeatOnHold" false
  349.         -fv "timeSliderRepeatChunk" 1.0;
  350.                 
  351.     //----------------------------------------------------------
  352.     // Advanced Preferences
  353.     //----------------------------------------------------------
  354.  
  355.     optionVar 
  356.         -iv "undoIsEnabled" true
  357.         -iv "undoIsInfinite" false
  358.         -iv "undoLength" 50;
  359.  
  360.     //----------------------------------------------------------
  361.     // Rendering Preferences
  362.     //----------------------------------------------------------
  363.  
  364.     optionVar
  365.         -sv "preferredRenderer" "mayaSoftware";
  366.  
  367.     //----------------------------------------------------------
  368.     // File I/O Preferences
  369.     //----------------------------------------------------------
  370.  
  371.     optionVar
  372.         -sv "fileCompressionMode" "asCompressed";
  373.     optionVar
  374.         -iv "displayLayerMerge" 0
  375.         -iv "RecentFilesMaxSize" 4
  376.         -iv "RecentBackupsMaxSize" 4
  377.         -iv "RecentProjectsMaxSize" 4;
  378.  
  379.     //----------------------------------------------------------
  380.     // Modules Preferences
  381.     //----------------------------------------------------------
  382.  
  383.     optionVar 
  384.         -iv "loadDynamics" true
  385.         -iv "loadUrchin" true;
  386.  
  387.     //----------------------------------------------------------
  388.     // OpenMaya Preferences
  389.     //----------------------------------------------------------
  390.  
  391.     optionVar
  392.         -iv "apiPrefLazyLoading" false
  393.         -iv "apiPrefOldPluginWarning" true;
  394.  
  395. }
  396.